home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / isinf.tex < prev    next >
LaTeX Document  |  1994-05-01  |  1.3 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: isinf.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 69 73 69 6e 66 20 2d |\section|{isinf -|
|00000010| 2d 2d 20 54 65 73 74 20 | 66 6f 72 20 49 6e 66 69 |-- Test |for Infi|
|00000020| 6e 69 74 79 7d 0d 5c 6c | 61 62 65 6c 7b 66 6e 3a |nity}.\l|abel{fn:|
|00000030| 69 73 69 6e 66 7d 0d 5c | 69 6e 64 65 78 7b 69 73 |isinf}.\|index{is|
|00000040| 69 6e 66 28 29 7d 0d 5c | 69 6e 64 65 78 7b 74 65 |inf()}.\|index{te|
|00000050| 73 74 20 66 6f 72 20 69 | 6e 66 69 6e 69 74 79 7d |st for i|nfinity}|
|00000060| 0d 5c 69 6e 64 65 78 7b | 69 6e 66 69 6e 69 74 79 |.\index{|infinity|
|00000070| 20 74 65 73 74 7d 0d 5c | 62 65 67 69 6e 7b 72 61 | test}.\|begin{ra|
|00000080| 69 6c 7d 0d 49 73 49 6e | 66 3a 20 27 69 73 69 6e |il}.IsIn|f: 'isin|
|00000090| 66 27 20 27 28 27 20 28 | 20 53 63 61 6c 61 72 20 |f' '(' (| Scalar |
|000000a0| 7c 20 4d 61 74 72 69 78 | 20 29 20 27 29 27 20 3b || Matrix| ) ')' ;|
|000000b0| 0d 5c 65 6e 64 7b 72 61 | 69 6c 7d 0d 0d 5c 76 65 |.\end{ra|il}..\ve|
|000000c0| 72 62 2b 69 73 69 6e 66 | 2b 20 74 65 73 74 73 20 |rb+isinf|+ tests |
|000000d0| 69 66 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |if the a|rgument |
|000000e0| 69 73 20 65 71 75 61 6c | 20 74 6f 20 24 5c 70 6d |is equal| to $\pm|
|000000f0| 20 5c 69 6e 66 74 79 24 | 2e 20 20 49 66 20 74 68 | \infty$|. If th|
|00000100| 65 20 74 65 73 74 0d 69 | 73 20 74 72 75 65 2c 20 |e test.i|s true, |
|00000110| 69 74 20 72 65 74 75 72 | 6e 73 20 24 31 24 2c 20 |it retur|ns $1$, |
|00000120| 6f 74 68 65 72 77 69 73 | 65 20 69 74 20 72 65 74 |otherwis|e it ret|
|00000130| 75 72 6e 73 20 24 30 24 | 2e 20 49 66 20 74 68 65 |urns $0$|. If the|
|00000140| 20 61 72 67 75 6d 65 6e | 74 0d 69 73 20 61 20 6d | argumen|t.is a m|
|00000150| 61 74 72 69 78 2c 20 74 | 68 65 20 74 65 73 74 20 |atrix, t|he test |
|00000160| 69 73 20 70 65 72 66 6f | 72 6d 65 64 20 65 6c 65 |is perfo|rmed ele|
|00000170| 6d 65 6e 74 2d 62 79 2d | 65 6c 65 6d 65 6e 74 2c |ment-by-|element,|
|00000180| 20 72 65 74 75 72 6e 69 | 6e 67 20 61 20 0d 6d 61 | returni|ng a .ma|
|00000190| 74 72 69 78 20 74 68 65 | 20 73 61 6d 65 20 73 69 |trix the| same si|
|000001a0| 7a 65 20 61 73 20 74 68 | 65 20 6f 72 69 67 69 6e |ze as th|e origin|
|000001b0| 61 6c 2e 0d 0d 24 5c 4c | 6f 6e 67 72 69 67 68 74 |al...$\L|ongright|
|000001c0| 61 72 72 6f 77 24 20 54 | 68 69 73 20 69 73 20 6e |arrow$ T|his is n|
|000001d0| 6f 74 20 61 6e 20 5c 52 | 4c 61 42 5c 20 62 75 69 |ot an \R|LaB\ bui|
|000001e0| 6c 74 2d 69 6e 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |lt-in fu|nction. |
|000001f0| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 0d 69 | This fu|nction.i|
|00000200| 73 20 6e 6f 72 6d 61 6c | 6c 79 20 6c 6f 61 64 65 |s normal|ly loade|
|00000210| 64 20 6f 6e 20 73 74 61 | 72 74 2d 75 70 20 66 72 |d on sta|rt-up fr|
|00000220| 6f 6d 20 74 68 65 20 5c | 76 65 72 62 2b 69 73 69 |om the \|verb+isi|
|00000230| 6e 66 2e 72 2b 20 66 69 | 6c 65 20 69 6e 20 74 68 |nf.r+ fi|le in th|
|00000240| 65 0d 73 74 61 6e 64 61 | 72 64 20 5c 76 65 72 62 |e.standa|rd \verb|
|00000250| 2b 72 6c 69 62 2b 20 64 | 69 72 65 63 74 6f 72 79 |+rlib+ d|irectory|
|00000260| 2e 20 55 73 65 20 6f 66 | 20 74 68 65 20 5c 76 65 |. Use of| the \ve|
|00000270| 72 62 2b 2d 72 2b 20 6f | 70 74 69 6f 6e 2c 20 69 |rb+-r+ o|ption, i|
|00000280| 6e 63 6f 72 72 65 63 74 | 6c 79 20 0d 73 65 74 74 |ncorrect|ly .sett|
|00000290| 69 6e 67 20 74 68 65 20 | 5c 76 65 72 62 2b 52 4c |ing the |\verb+RL|
|000002a0| 41 42 5f 4c 49 42 5f 44 | 49 52 2b 20 65 6e 76 69 |AB_LIB_D|IR+ envi|
|000002b0| 72 6f 6e 6d 65 6e 74 61 | 6c 20 76 61 72 69 61 62 |ronmenta|l variab|
|000002c0| 6c 65 2c 20 6f 72 20 6d | 6f 64 69 66 79 69 6e 67 |le, or m|odifying|
|000002d0| 0d 5c 76 65 72 62 2b 69 | 73 69 6e 66 2e 72 2b 20 |.\verb+i|sinf.r+ |
|000002e0| 6d 61 79 20 6d 61 6b 65 | 20 74 68 69 73 20 66 75 |may make| this fu|
|000002f0| 6e 63 74 69 6f 6e 20 75 | 6e 61 76 61 69 6c 61 62 |nction u|navailab|
|00000300| 6c 65 2e 0d 0d 5c 70 61 | 72 61 67 72 61 70 68 7b |le...\pa|ragraph{|
|00000310| 45 78 61 6d 70 6c 65 7d | 0d 5c 69 6e 64 65 78 7b |Example}|.\index{|
|00000320| 65 78 61 6d 70 6c 65 20 | 6f 66 20 69 73 69 6e 66 |example |of isinf|
|00000330| 28 29 7d 0d 5c 69 6e 64 | 65 78 7b 69 73 69 6e 66 |()}.\ind|ex{isinf|
|00000340| 28 29 21 65 78 61 6d 70 | 6c 65 7d 0d 5c 62 65 67 |()!examp|le}.\beg|
|00000350| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0d 3e 20 69 |in{verba|tim}.> i|
|00000360| 73 69 6e 66 28 2d 69 6e | 66 28 29 29 0d 20 20 20 |sinf(-in|f()). |
|00000370| 20 20 20 20 20 31 0d 3e | 20 69 73 69 6e 66 28 69 | 1.>| isinf(i|
|00000380| 6e 66 28 29 29 0d 20 20 | 20 20 20 20 20 20 31 0d |nf()). | 1.|
|00000390| 3e 20 69 73 69 6e 66 28 | 6e 61 6e 28 29 29 0d 20 |> isinf(|nan()). |
|000003a0| 20 20 20 20 20 20 20 30 | 0d 3e 20 69 73 69 6e 66 | 0|.> isinf|
|000003b0| 28 30 29 0d 20 20 20 20 | 20 20 20 20 30 0d 3e 20 |(0). | 0.> |
|000003c0| 69 73 69 6e 66 28 31 29 | 0d 20 20 20 20 20 20 20 |isinf(1)|. |
|000003d0| 20 30 0d 3e 20 61 20 3d | 20 5b 69 6e 66 28 29 2c | 0.> a =| [inf(),|
|000003e0| 32 33 2c 36 35 2c 2d 69 | 6e 66 28 29 2c 69 6e 66 |23,65,-i|nf(),inf|
|000003f0| 28 29 5d 0d 20 61 20 3d | 0d 20 49 6e 66 69 6e 69 |()]. a =|. Infini|
|00000400| 74 79 20 20 20 20 20 20 | 20 20 20 32 33 20 20 20 |ty | 23 |
|00000410| 20 20 20 20 20 20 36 35 | 20 20 2d 49 6e 66 69 6e | 65| -Infin|
|00000420| 69 74 79 20 20 20 49 6e | 66 69 6e 69 74 79 20 20 |ity In|finity |
|00000430| 0d 3e 20 69 73 69 6e 66 | 28 61 29 0d 20 20 20 20 |.> isinf|(a). |
|00000440| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 20 20 30 | 1 | 0|
|00000450| 20 20 20 20 20 20 20 20 | 20 20 30 20 20 20 20 20 | | 0 |
|00000460| 20 20 20 20 20 31 20 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00000470| 31 20 20 0d 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |1 .\end|{verbati|
|00000480| 6d 7d 0d 0d 53 65 65 20 | 61 6c 73 6f 3a 20 50 61 |m}..See |also: Pa|
|00000490| 67 65 7e 5c 70 61 67 65 | 72 65 66 7b 66 6e 3a 66 |ge~\page|ref{fn:f|
|000004a0| 69 6e 69 74 65 7d 20 5c | 76 65 72 62 2b 66 69 6e |inite} \|verb+fin|
|000004b0| 69 74 65 28 29 2b 2c 0d | 50 61 67 65 7e 5c 70 61 |ite()+,.|Page~\pa|
|000004c0| 67 65 72 65 66 7b 66 6e | 3a 69 6e 66 7d 20 5c 76 |geref{fn|:inf} \v|
|000004d0| 65 72 62 2b 69 6e 66 28 | 29 2b 2c 0d 50 61 67 65 |erb+inf(|)+,.Page|
|000004e0| 7e 5c 70 61 67 65 72 65 | 66 7b 66 6e 3a 69 73 6e |~\pagere|f{fn:isn|
|000004f0| 61 6e 7d 20 5c 76 65 72 | 62 2b 69 73 6e 61 6e 28 |an} \ver|b+isnan(|
|00000500| 29 2b 2c 0d 50 61 67 65 | 7e 5c 70 61 67 65 72 65 |)+,.Page|~\pagere|
|00000510| 66 7b 66 6e 3a 6e 61 6e | 7d 20 5c 76 65 72 62 2b |f{fn:nan|} \verb+|
|00000520| 6e 61 6e 28 29 2b 2c 0d | 0d 5c 6e 65 77 70 61 67 |nan()+,.|.\newpag|
|00000530| 65 0d 0d 0d 0d 0d 0d 0d | |e.......| |
+--------+-------------------------+-------------------------+--------+--------+